home *** CD-ROM | disk | FTP | other *** search
- Path: news.ust.hk!ec_wsk
- From: ec_wsk@uxmail.ust.hk (Wong Siu Ki)
- Newsgroups: comp.lang.c++
- Subject: How to change the following BASIC into C++?
- Date: 5 Jan 1996 07:10:31 GMT
- Organization: The Hong Kong University of Science and Technology
- Message-ID: <4ciit7$6fa@news.ust.hk>
- NNTP-Posting-Host: ustsu25.ust.hk
- X-Newsreader: TIN [version 1.2 PL2]
-
-
- Hi!
- I want to know how to write the following things in C++:
-
- 10 a$=inkey$
- 20 print "ok"
- 30 if a$="" then goto 10
-
- (I know goto is not good, but here is just for convenience)
-
- The program is to print ok ok ok ok .... until press any key.
- Is there any function in C++ can perform this function???
- Thanks!!!
- K.
-
- Wong Siu Ki
- ec_wsk@stu.ust.hk
- Economics BSc Year 2
-